<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="style/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="querydata.js"></script>
</head>
<body class="a_height" onload="getselectedByDefult(${oid });">

<!-- 查询条件FORM -->

	<form action="queryAction?oid=${oid }&pg=1" method="post"
		id="selectquery">
		<input type="hidden" value="1" name="pg" id="pg"> <input
			type="hidden" value="${oid }" name="oid" id="oid">
		<div>
			<div class="nav">
				<i class="total_bg"></i>当前位置：<span><a href="#">综合查询</a></span><span><a
					href="javascript:void(0)">&gt;</a></span><span><a href="#">查询数据对象</a></span>
			</div>
			<br> &nbsp;<input type="button"
				onclick="getselectedByDefult(${oid },1);" value="简单查询">&nbsp;  <input
				type="button" onclick="getselectedByDefult(${oid },2);" value="复杂查询">
			<br> <br> <input type="hidden" value="${selectlistlengh }"
				name="selectcount">

			<!-- 查询条件选择框 -->
			<div style="visibility: hidden;" id="namediv">
				<c:forEach items="${selectlist }" var="s" step="1" varStatus="v">
			&nbsp;${s.name } :
			<c:if test="${s.isdefult==1 }">
						<input type="checkbox" value="${s.id }" disabled="disabled"
							checked="checked" name="checkselect">
					</c:if>
					<c:if test="${s.isdefult!=1}">
						<input type="checkbox" value="${s.id }" name="checkselect">
					</c:if>
					
				</c:forEach>
				&nbsp;<input type="button" onclick="getselected(${oid });" value="确定">
			</div>
			
			
			<!-- 查询条件显示TABLE -->
			
			<table class="quarytable" align="left" id="NewTable">
			</table>
			
			
			<!-- 查询按钮 -->
			<div class="add_task">
				<span
					style="position: absolute; right: -15px; top: 10px; background-color: #f237ff"
					class="total_bg do_submit " onclick="querydata(3);">查询</span>
			</div>
			
		</div>
	</form>
	<br>
	<br>
	<br>
	
	
	
	
	<div class="content2">
	<!-- 字段名
		<table class="content_table" id="name">
			<tr>
				<c:forEach items="${name }" var="n" step="1" varStatus="v">
					<td bgcolor="red">${n }</td>
				</c:forEach>
			</tr>
		</table>
	 -->
		<br>
		<!-- 字段数据 -->
		<table class="content_table" id="datatable"
			style="position: relative; top: 0px">
			<tr>
				<c:forEach items="${name }" var="n" step="1" varStatus="v">
					<td bgcolor="red">${n }</td>
				</c:forEach>
			</tr>
		</table>
	</div>
	
	
	
	<!-- 分页导航 -->
	<div class="pagebar">
		<ul>
			<li class="pre"><a onclick="querydata(2);"
				href="#queryAction?oid=${oid }&pg=${pg-1 }"><i class="total_bg"></i>上一页</a></li>
			<li><a href="#" id="pgpg">${pg }</a></li>
			<li class="next"><a onclick="querydata(1);"
				href="#queryAction?oid=${oid }&pg=${pg+1 }">下一页<i
					class="total_bg"></i></a></li>
			<li>共页</li>
			<li class="end"><a href="">末页<i class="total_bg"></i></a></li>
			<li class="num_jump"><i class="total_bg"></i>
				<form action="auditAction!getMigrateAud" id="gopi">
					<input type="text" class="num" name="pi" /> <span class="numjump"
						onclick="gopi();"></span>
				</form></li>
		</ul>
	</div>
	


</body>
</html>